package com.qiang.demo01;

import com.qiang.demo01.domain.Student;

import java.util.Objects;

public class Test07 {
    public static void main(String[] args) {
        Student s = new Student();
        s =null;
       /* s.setName("小花");
        s.setAge(21);*/
        String s1 = Objects.toString(s,"你好");
        System.out.println(s1);
        boolean aNull = Objects.isNull(s);
        System.out.println(aNull);
    }
}
